package BehavioralMode.visitor.materials;

/**
 * 访问者模式客户端
 * */
public class Client {
    public static void main(String[] args) {
          Metal metal = new Metal();
          Paper paper = new Paper();
          MaterialsList materialsList = new MaterialsList();

          materialsList.addEle(metal);
          materialsList.addEle(paper);

          materialsList.acceptVistor(new CompanyA());

          materialsList.acceptVistor(new CompanyB());
    }
}
